
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link type="test/css" href="css/style.css" rel="stylesheet">
<script type="text/javascript" src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>  
<script type="text/javascript">
	console.log("start");
	var param = {
		"pageSize": null,
		"pageNum": null,
		"condition": [
			{
				"name": "id",
				"value": 1
			}
		]
	};
	$(function(){
	$("#cors").click(
		function(){
//			$.ajax({
//				type:"GET",
//				//type: "POST",
//				/*headers:{
//					"Content-Type":"application/json;charset=UTF-8",
//					"Access-Control-Allow-Origin":"*",
//					"APPID":"b835bc003512cb74965fc75e9edfa327",
//					"appid":"b835bc003512cb74965fc75e9edfa327",
//					"Secret-Key":"20200908180006963",
//					"secret-key":"20200908180006963"
//				},*/
//				url:"http://ht-dp.boleme.net/dmp/open/getDpSecret",
//				//url:"http://localhost:9000/open/api/get/testZXYstatus1", 
//				//url:"http://ht.dpoa.boleme.net/open/api/get/testZXYstatus1", 
//				//data: JSON.stringify(param),
//				data:{
//					"appId":"b835bc003512cb74965fc75e9edfa327",
//					"secret":"5b20ed1ddf65faea"
//				}
//				beforeSend: function(request) {//
//					request.setRequestHeader("appid","3c307b1e8b413859cabd043834be7473");
//#					request.setRequestHeader("secret-key","7b018a4ee8dec045");
//#					request.setRequestHeader("Content-Type","application/json;charset=UTF-8");
//#					request.setRequestHeader("Access-Control-Allow-Origin","*");
//#				 },
//				success:function(data){
//					console.log("start111")
//					console.log(data)
//					alert(data);
//				}
//			})

$.ajax({
	url:'http://ht-dp.boleme.net/dmp/open/getDpSecret?appId=111&secret=222',
	type:"get", 
	data:"",
	success:function (data) {
		
		console.log(data);
	},
	error:function (error) {
		
	}
});





		});
	});
	
	//var xmlhttp = new XMLHttpRequest();
</script>
<body>
	<input type="button" id="cors" value="core"/>
       <img id="imgId" src="/tt.jpg"/>
</body>
</html>
